/*
 * JVM_ClassTable.h
 *
 *  Created on: 02.01.2011
 *      Author: Tavin
 */

#include "JVM_Class.h"
#ifndef JVM_CLASSTABLE_H_
#define JVM_CLASSTABLE_H_



typedef struct{
	uint16_t size;
	uint16_t dummy;
	JVM_Class_t * classes[];

} JVM_ClassTable_t;





#define JAVA_LANG_OBJECT_INDEX			0
#define JAVA_LANG_STRING_INDEX			1

#define JAVA_LANG_EXCEPTION_INDEX            2
#define JAVA_LANG_NULLPOINTEREXCEPTION_INDEX 3
#define JAVA_LANG_ARITHMETICEXCEPTION_INDEX  4

#define JAVA_LANG_STRING_DATA_INDEX		0

uint16_t JVM_ClassTable_size();
JVM_Class_t * JVM_ClassTable_get(uint16_t index);

void  *JVM_ClassTable_getRawPointer();

#endif /* JVM_CLASSTABLE_H_ */